import http from '@/utils/request.js';

// 获取我的申请列表
export const myApplcationList = (data) => {
	// return http.post('/repair/my/approve/list', data, 1);
	return http.request({
		url: '/repair/my/approve/list',
		method: 'post',
		data,
		textJson: true,
	});
};

// 获取审批列表
export const myApprovalList = (data) => {
	// return http.get('/repair/business/flow/6/page', data);
	return http.request({
		url: '/repair/business/flow/6/page',
		method: 'get',
		data
	});
};

// 工作项修改
export const workItemUpdate = (data) => {
	// return http.post('/repair/maintain/check/history/update', data, 1);
	return http.request({
		url: '/repair/maintain/check/history/update',
		method: 'post',
		data,
		textJson: true,
	});
};
